package com.cc;

import domain.Rectangle;

/**
 * @author cpp
 * @version 1.0
 * @date 2025/3/18 17:01
 * @description
 */

public class OOPDemo06 {
    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setLength(4);
        rectangle.setKuan(2);
        System.out.println(rectangle.getArea());
        System.out.println(rectangle.getPerimeter());
        rectangle.setLength(4 * 2);
        rectangle.setKuan(2 * 2);
        System.out.println(rectangle.getInfo());
    }

}
